import { App } from "vue";
import {
    MySearchSubmitButton,
    MyCreateButton,
    MyEditButton,
    MyDeleteButton,
    MyResetButton,
    MyCustomButton,
} from "../components/MyForm/MyButtons";
import MyLoading from "../components/MyLoading";
import MyModal from "../components/MyModal";
import MyWangeditor from "../components/MyWangeditor";

export const setupComponents = (app: App<Element>) => {
    app.component("MyLoading", MyLoading);

    app.component("MySearchSubmitButton", MySearchSubmitButton);
    app.component("MyCreateButton", MyCreateButton);
    app.component("MyEditButton", MyEditButton);
    app.component("MyDeleteButton", MyDeleteButton);
    app.component("MyResetButton", MyResetButton);
    app.component("MyCustomButton", MyCustomButton);

    app.component("MyModal", MyModal);
    app.component("MyWangeditor", MyWangeditor);
};
